package Bs;

public class StringEquals {
    public static void main(String[] args) {
        System.out.println(""+'b'+1);
        String a = "123";
        String b = "123";
        String c = new String("123");
        String d = new String("123");
        System.out.println(a == b);
        System.out.println(a.equals(b));
        System.out.println(c == d);
        System.out.println(a.equals(c));
        System.out.println(c.equals(b));
        System.out.println((a+c)==(b+d));
    }
}
